<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;

use App\Http\Requests;
use App\Http\Controllers\Controller;
use DB;

class PreController extends Controller
{
    //
    public function pre(){
      $pre=DB::table('pres')->get();
      return view('pre',['pre'=>$pre]);
    }
    public function preid($id){
       $pre=DB::table('pres')->where('id',$id)->first();
      return view('preid',['pre'=>$pre]);
    }
}
